import { createBrowserRouter } from 'react-router-dom'
import Login from "../views/Login";
import HomePage from "../views/HomePage";
import Box from '../views/Box';
import Layout from "../views/Layout";
import ProductManage from "../views/Li/ProductManage";
import OnlineOrdering from "../views/SuPage/OnlineOrdering";
import OnlineBoxes from '../views/tsh/OnlineBoxes';
import ShowPendingShipmentWaybills from "../views/W/ShowPendingShipmentWaybills";
import CreatePendingShipmentWaybills from "../views/W/CreatePendingShipmentWaybills";
import UpdatePendingShipmentWaybills from "../views/W/UpdatePendingShipmentWaybills";
import IAM_View from "../views/SystemUsers/IAM_View";

const router = createBrowserRouter([
  {
    path: '/',
    element: <Login />,
  },
  {
    path: '/homepage',
    element: <HomePage />,
    children:[{
      path:'iamview',
      element:<IAM_View></IAM_View>,
    },
    {
      path: 'onlineboxes',
      element: <OnlineBoxes />
    },
  ]
  },
  {
    path: '/Box',
    element: <Box />,
  },

  {
    path:'/Layout',
    element:<Layout></Layout>,
    children:[{
      path:'ShowPendingShipmentWaybills',
      element:<ShowPendingShipmentWaybills></ShowPendingShipmentWaybills>,
    }]
  },
  {
    path:'/OnlineOrdering',
    element:<OnlineOrdering></OnlineOrdering>,
    },
    {
      path:'CreatePendingShipmentWaybills',
      element:<CreatePendingShipmentWaybills></CreatePendingShipmentWaybills>,
    },
    {
      path:'UpdatePendingShipmentWaybills/:id',
      element:<UpdatePendingShipmentWaybills></UpdatePendingShipmentWaybills>,
    },

  {
    path: '/ProductManage',
    element:<ProductManage></ProductManage>,
  },
    {
      path: '/Box',
      element: <Box />,
    },
  
  
])
export default router;